package com.zmn.plat.services.interfaces.channel;

import java.util.List;

import com.zmn.plat.model.entity.channel.ChannelLog;
import com.zmn.plat.model.entity.channel.ChannelLogQuery;

/**
 * 渠道操作日志
 *
 * @author xiangjunming
 * @since 2020 /07/16 18:05:15
 */
public interface ChannelLogService {

    /**
     * 根据logId查询日志
     *
     * @param logId
     *            the log id
     * @return the channel new
     */
    ChannelLog findByKey(Integer logId);

    /**
     * 根据channelId查询日志
     *
     * @param channelId
     *            the channel id
     * @return the channel new
     */
    List<ChannelLog> listByChannelId(Integer channelId);

    /**
     * 根据条件查询日志
     *
     * @param query
     *            the query
     * @return the list
     */
    List<ChannelLog> listByQuery(ChannelLogQuery query);

    /**
     * 分页查询日志
     *
     * @param query
     *            查询对象
     * @return the list
     */
    List<ChannelLog> listPageByQuery(ChannelLogQuery query);

    /**
     * 分页记录数
     *
     * @param query
     *            the query
     * @return the integer
     */
    Integer countByQuery(ChannelLogQuery query);

    /**
     * 根据LogId修改日志
     *
     * @param record
     *            the record
     * @return the int
     */
    int update(ChannelLog record);

    /**
     * 新增操作日志
     *
     * @param record
     *            the record
     * @return the int
     */
    int insert(ChannelLog record);

    /**
     * 删除操作日志
     *
     * @param LogId
     *            the log id
     * @return the int
     */
    int deleteByKey(Integer LogId);

}